﻿<%@ Page Language="C#" %>

<!DOCTYPE html>

<script runat="server">
  protected void Page_Load(object sender, EventArgs e)
  {
    if (!Page.IsPostBack)
    {
      try
      {
        string flag = ConfigurationManager.AppSettings["WebAlertFlag"].ToString();
        if (Server.GetLastError() != null && flag == "1")
        {
          Exception ex = Server.GetLastError().GetBaseException();
          MailUtility.SendHTMLMail("", ConfigurationManager.AppSettings["WebAlertMail"].ToString()
            , "[樂e購]網站系統錯誤通知", "網站系統發生錯誤訊息：" + ex.Message
            + "，可追蹤資訊：" + Server.GetLastError().GetBaseException().StackTrace);
          Server.ClearError();
        }
      }
      catch (Exception)
      {

      }
    }
  }

</script>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>樂e購購物網</title>
  <style type="text/css">
    * {
      margin: 0;
      padding: 0;
    }

    body {
      font-family: "Arial","微軟正黑體", "Microsoft JhengHei", "新細明體", "PMingLiU", sans-serif,Calibri;
      font-size: 100%;
      color: #6e583a;
    }

    .maintain {
      width: 600px;
      margin: 100px auto;
      border: 1px solid #ccc;
      padding: 20px;
    }


    h1 {
      color: #d24038;
      font-size: 180%;
      text-align: center;
    }
  </style>
</head>
<body>
  <form id="form1" runat="server">
    <div style="text-align: center">
      <a id="A1" href="~/Home.aspx" runat="server">
        <asp:Image ID="ImageError" BorderWidth="0" runat="server" ImageUrl="~/Images/ContentImages/Sorry_en.gif" />
      </a>
      <div class="maintain">
        <h1>網站系統目前正忙碌中，請稍後再試，謝謝!</h1>
      </div>
    </div>
  </form>
</body>
</html>
